﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div id="planstartlist">
    <p>
        发起列表</p>
    <div>
        <table>
            <tr>
                <th>
                    流水编码
                </th>
                <th>
                    计划名称
                </th>
                <th>
                    发起日期
                </th>
                <th>
                    操作
                </th>
            </tr>
            <%
                System.Data.DataTable dt = ViewData["dt"] as System.Data.DataTable;
                for (int i = 0; i < dt.Rows.Count; i++)
                {
            %>
            <tr>
                <td>
                    <%=dt.Rows[i]["流水编码"]%>
                </td>
                <td>
                    <%=dt.Rows[i]["名称"]%>
                </td>
                <td>
           <%=DateTime.Parse(dt.Rows[i]["发起日期"].ToString()).ToString("yyyy-MM-dd HH:mm")%>
                </td>
                <td>
                    <%=Ajax.ActionLink("查看", "PlanDetial", new { ins_id = dt.Rows[i]["流水编码"] }, new AjaxOptions { UpdateTargetId = "workarea" })%>
                </td>
            </tr>
            <%
                } %>
        </table>
    </div>
</div>
